<?php
/**
 * The form of the customer shopping cart.
 * We use a decorator to render a script (_cart.phtml)
 */
class Storefront_Form_Cart_Table extends SF_Form_Abstract
{
    
    public function init()
    {
        //We dont wont the default list definition markup (<dl>)
        $this->setDisableLoadDefaultDecorators(true);
        
        $this->setDecorators(array(
            array(
                'ViewScript', 
                array('viewScript' => 'cart/_cart.phtml')
            ),
            'Form'
        ));
        
        $this->setMethod('post');
        $this->setAction('');
        
        $this->addElement('submit', 'update-cart', array(
            'decorators' => array(
                'ViewHelper'
            ),
            'label' => 'Update'
        ));
        
    }
    
}